package ltd.dujiabao.eduservice.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ltd.dujiabao.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import ltd.dujiabao.eduservice.entity.EduTeacher;
import ltd.dujiabao.eduservice.entity.vo.CourseInfoForm;
import ltd.dujiabao.eduservice.entity.vo.CoursePublishVo;
import ltd.dujiabao.eduservice.entity.vo.CourseQuery;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author dujiabao
 * @since 2021-04-21
 */
public interface EduCourseService extends IService<EduCourse> {
  boolean saveCourseInfo(CourseInfoForm courseInfoForm);

  boolean updateCourseInfo(CourseInfoForm courseInfoForm);

  CourseInfoForm getCourseInfo(String id);

  IPage<EduCourse> pageQuery(Page<EduCourse> page, CourseQuery courseQuery);

  CoursePublishVo getCoursePublish(String id);

  boolean publishCourse(String id, Boolean published);

  boolean removeCourse(String id);
}
